package chendu.service;

import chendu.entity.PhoneInfo;
import chendu.entity.PhoneSpecs;
import chendu.vo.DataVO;
import chendu.vo.PhoneInfoVO;
import chendu.vo.SpecsPackageVO;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
//@Service("phoneService")
public interface PhoneService {
    //首页展示
    public DataVO findDataVO();
    //根据手机类型查询手机
    public List<PhoneInfoVO> findPhoneInfoVOByCategoryType(Integer categoryType);

    //根据手机id查询手机
    public SpecsPackageVO findSpecsByPhoneId(Integer phoneId);


    //OrderHandler调用
    PhoneSpecs findSpecsById(Integer specsId);
    //OrderHandler调用
    PhoneInfo findPhoneById(Integer phoneId);
    //OrderHandler调用
    void subStock(Integer specsId ,Integer specsStock);
}
